API Documentation
ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5 
6 namespace nkGraphics
7 {
13  struct MacroEntry
14  {
15  std::string _key ;
16  std::string _value ;
17  } ;
18 }
19 
20 namespace nkGraphics
21 {
26  {
27  public :
28 
37 
69  const std::vector<MacroEntry>& getDefineMacrosVertex () const ;
73  const std::vector<MacroEntry>& getDefineMacrosHull () const ;
77  const std::vector<MacroEntry>& getDefineMacrosDomain () const ;
81  const std::vector<MacroEntry>& getDefineMacrosGeometry () const ;
85  const std::vector<MacroEntry>& getDefineMacrosPixel () const ;
89  const std::vector<MacroEntry>& getDefineMacrosCompute () const ;
93  const std::vector<MacroEntry>& getDefineMacrosRaytracing () const ;
97  unsigned int getDefineMacroMaxNumber () const ;
101  unsigned int getDefineMacroMaxNumberPipeline () const ;
105  unsigned int getDefineMacroNumberCompute () const ;
109  unsigned int getDefineMacroNumberRaytracing () const ;
110 
188 
210  void copyDefinesFrom (const ProgramSourcesHolder& other) ;
211  } ;
212 }
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytracing
void addDefineMacroRaytracing(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::getGeometryMemory
nkMemory::StringView getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getVertexMemory
nkMemory::StringView getVertexMemory() const
nkGraphics::ProgramSourcesHolder::getHullMemory
nkMemory::StringView getHullMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
const std::vector< MacroEntry > & getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::setRaytracingMemory
void setRaytracingMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
const std::vector< MacroEntry > & getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
const std::vector< MacroEntry > & getDefineMacrosHull() const
nkGraphics::MacroEntry::_key
std::string _key
The macro key.
Definition: ProgramSourcesHolder.h:15
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytracing
bool hasMinimalDefinitionsRaytracing() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::~ProgramSourcesHolder
~ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytracing
unsigned int getDefineMacroNumberRaytracing() const
nkGraphics::MacroEntry::_value
std::string _value
The value given to the macro.
Definition: ProgramSourcesHolder.h:16
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
const std::vector< MacroEntry > & getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getRaytracingMemory
nkMemory::StringView getRaytracingMemory() const
nkGraphics::ProgramSourcesHolder::ProgramSourcesHolder
ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(const nkMemory::StringView &str)
nkGraphics::ProgramSourcesHolder::getComputeMemory
nkMemory::StringView getComputeMemory() const
nkGraphics::ProgramSourcesHolder::getPixelMemory
nkMemory::StringView getPixelMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
const std::vector< MacroEntry > & getDefineMacrosVertex() const
nkGraphics::ProgramSourcesHolder::copyDefinesFrom
void copyDefinesFrom(const ProgramSourcesHolder &other)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:26
nkGraphics::ProgramSourcesHolder::getDomainMemory
nkMemory::StringView getDomainMemory() const
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(const nkMemory::StringView &str)
nkGraphics::MacroEntry
Holds information about a macro entry.
Definition: ProgramSourcesHolder.h:14
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
const std::vector< MacroEntry > & getDefineMacrosCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(const nkMemory::StringView &key, const nkMemory::StringView &value)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytracing
const std::vector< MacroEntry > & getDefineMacrosRaytracing() const
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(const nkMemory::StringView &str)